﻿<%@ WebHandler Language="C#" Class="PageHandler" %>

using System.Web;
using System.Collections.Generic;

public class PageHandler : IHttpHandler {

    public void ProcessRequest (HttpContext context) {
        context.Response.ContentType = "text/plain";
        List<string> sqllist = new List<string>();
        sqllist.Add(context.Request.Params["sql1"].ToString());
        sqllist.Add(context.Request.Params["sql2"].ToString());
        DB page = new DB();
        // int num = page.count(sqllist);
        //List<string> r=page.ExecuteTransaction(sqllist);
        //if (r != null)
        //{

        //    //context.Response.Write(r[0]);
        //    //context.Response.Write('|');
        //    //context.Response.Write(r[1]);
        //    context.Response.End();
        //}
        //else
        //{
        //    context.Response.Write("失败"); context.Response.End();
        //}
    }

    public bool IsReusable {
        get {
            return false;
        }
    }}